package com.findu.fragment;

import com.example.findu.R;
import com.example.findu.R.id;
import com.example.findu.R.layout;
import com.findu.control.Public_title;
import com.findu.model.FUFamilyTree;
import com.findu.model.TestData;
import com.findu.view.AncestryView;

import android.os.Bundle;
import android.app.Activity;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class Fragment_Conversaction_genealogy_3 extends Fragment {
	private View fragmentView;
	private TextView text_newShop,fragment_homepage_textView_Hot;
	
	Public_title public_title;	//标题控制
	// 声明布局文件
	private View include_view;
	private AncestryView av;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		// 引入并得到view
		fragmentView = inflater.inflate(R.layout.fragment__conversaction_genealogy_3, container,false);
		
		
		// 初始化布局文件
		include_view = fragmentView.findViewById(R.id.fragment_conversation_page3_include);
		public_title = new Public_title(include_view);	// 新建工具类设置布局控件	
		public_title.setTextView("家谱");
		
		av = (AncestryView) fragmentView.findViewById(R.id.div_family);
		return fragmentView;
	}
	@Override
	public void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		FUFamilyTree data = TestData.getFamilyTree();
        av.setData(data);
	}
	

}
